package com.sz.sboot.entity;

import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Table(name = "t_roles")
public class TRoles implements Serializable {
    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer rid;
    private String rname;

    public TRoles() {
    }

    public TRoles(Integer rid, String rname) {
        this.rid = rid;
        this.rname = rname;
    }

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public String getRname() {
        return rname;
    }

    public void setRname(String rname) {
        this.rname = rname;
    }
}
